//
//  SHTabBarController.m
//  SimpleHappy
//
//  Created by lanou on 15/11/23.
//  Copyright © 2015年 RockyFung. All rights reserved.
//

#import "SHTabBarController.h"
#import "SHNavigationController.h"
#import "DiscoverController.h"
#import "ReserveController.h"
#import "MyController.h"
#import "Define.h"



@interface SHTabBarController ()

@property (nonatomic, strong) UILabel *titleLabel;

@end

@implementation SHTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.


    
    
    
    // 预定
    ReserveController *reserveVc = [[ReserveController alloc]init];
    SHNavigationController *reserveNav = [[SHNavigationController alloc]initWithRootViewController:reserveVc];
    reserveNav.tabBarItem.title = @"精选";
    reserveNav.tabBarItem.image = [UIImage imageNamed:@"yuding.png"];
    reserveNav.tabBarItem.selectedImage = [UIImage imageNamed:@"yuding2.png"];
    [self addChildViewController:reserveNav];   
    
    // 发现
    DiscoverController *disVc = [[DiscoverController alloc]init];
    SHNavigationController *disNav = [[SHNavigationController alloc]initWithRootViewController:disVc];
    disNav.tabBarItem.title = @"发现";
    disNav.tabBarItem.image = [UIImage imageNamed:@"faxian.png"];
    disNav.tabBarItem.selectedImage = [UIImage imageNamed:@"faxian2.png"];

    [self addChildViewController:disNav];
    
    // 我的
    MyController *myVc = [[MyController alloc]init];
    myVc.tabBarItem.title = @"我的";
    myVc.tabBarItem.image = [UIImage imageNamed:@"my.png"];
    myVc.tabBarItem.selectedImage = [UIImage imageNamed:@"my2.png"];
    
    [self addChildViewController:myVc];
    
    // 设置tabBar按钮颜色
    self.tabBar.tintColor = [UIColor blackColor];
    
    // 设置导航栏背景色
//    [[UINavigationBar appearance]setBarTintColor:[UIColor greenColor]];
    
    
    


    

}





















@end
